package com.lry.proxy;

import com.lry.router.Router;
import com.lry.rpc.netty.client.RpcClient;
import com.lry.spi.EnhancedServiceLoader;

public class ProxyFactory {

    public static Proxy getProxy(String proxyType, Router router,String[] includeMethod,String[] excludeMethod,String group,String version) {
        return EnhancedServiceLoader.load(Proxy.class, proxyType,
                new Class[]{Router.class,String[].class,String[].class,String.class,String.class},
                new Object[]{router,includeMethod,excludeMethod,group,version});
    }
}
